package jiubeirobot.com.robotshop.utils;

import android.content.Context;

/**
 */
public class ScreenUtil {

    public static int getStatusHeight(Context context){
        /**
         * 获得通知栏的高度
         */
        int resid = context.getResources().getIdentifier("status_bar_height","dimen","android");
        if(resid > 0){
            return context.getResources().getDimensionPixelSize(resid);
        }
        return -1;
    }

}
